package com.wiz.boot.demo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.wiz.boot.demo.entity.Demo;
import com.wiz.boot.demo.service.DemoService;

@RestController
public class TestController {
	@Autowired
	private DemoService service;

	@RequestMapping("/show")
	public Demo show(int id) {
		return service.show(id);
	}
}
